{extend name="index:layout" /}

{block name="menu"}{/block}

{block name="content"}
<form name="form1" method="post" action="index.php?lfj=$lfj&action=set">
<div class="MainContainers">
  <div class="Header"><span class="tag">普通会员组升级方案设置</span><span class="more">&gt;&gt;</span></div>
  <div class="Conter">


<table class="FormTable">
<!--     <tr  class="head"> 
      <td colspan="2"> 
        <div align="center"><font color="#FFFFFF">普通会员组升级方案设置</font></div>
      </td>
    </tr> -->
    <tr> 
      <td class='tdL'>普通会员默认升级方式:</td>
      <td class='tdR'> 
        <input type="radio" name="webdbs[groupUpType]" value="0" $groupUpType[0]>
        按积分多少自动升级 
        <input type="radio" name="webdbs[groupUpType]" value="1" $groupUpType[1]>
        通过积分购买才能升级 </td>
    </tr>
    <tr> 
      <td class='tdL'>如果个别会员自愿通过积分购买升级:</td>
      <td class='tdR'> 有效期为
<input type="text" name="webdbs[groupTime]" size="5" value="$webdb[groupTime]">
        天</td>
    </tr>
    <tr> 
      <td colspan="2"> 
        <input type="hidden" name="step" value="1">
        <input type="hidden" name="action" value="list">
        <!-- <input type="submit" name="Submit" value="修改以上设置"> -->
        <div class="submits"><input type="submit" value=" 修改以上设置" name="submit"></div>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF" align="left"> 
      <td colspan="2"><b>注意:</b><br>
        1. 按积分多少自动升级的话,当积分低于指定积分的话.将自动降级.<br>
        2. 通过积分购买才能升级的话,当超过有效期时,自动降级.<br>
        3. 普通会员组升级方式设置更改后.用户下次登录才会生效.<br>
        4. 注意:如果你轻易的更换有效日期,原有购买用户不受影响,新购买级别的用户才受影响.</td>
    </tr>
   
  </table>
  </div>
</div>
</form> 

<form name="form1" method="post" action="index.php?lfj=$lfj&action=$job">
    <div class="MainContainers">
    <div class="Header"><span class="tag">用户组前台权限管理</span><span class="more">&gt;&gt;</span></div>
      <div class="Conter">

<table class="ListTable">
    <tr> 
      <th width="6%"> ID代号
        <!-- <div align=center><b><font color="#990033"></font></b></div> -->
      </th>
      <th width="14%">用户组名称</th>
      <th width="17%">用户组性质</th>
      <th width="19%">用户组成员</th>
      <th width="20%">升级积分</th>
      <th width="24%">修改权限</th>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor='#FFFFFF'> 
      <td width='6%' align="center"> $rs[gid] </td>
      <td width='14%'> 
        <input type='text' name='postdb[{$rs[gid]}][grouptitle]' value='$rs[grouptitle]'>
      </td>
      <td width='17%' align="center">$rs[ifSystem]</td>
      <td width='19%' align="center">
        <!--
EOT;
if($rs[gid]!=2){
print <<<EOT
-->
	  <a href="index.php?lfj=member&job=list&T=&groupid=$rs[gid]" title="点击查看此用户组下的所有会员名单"><img src="../member/images/icon_user.gif" border="0"></a>
        <!--
EOT;
}
print <<<EOT
-->
	  </td>
      <td width='20%' align="center"> 
        <!--
EOT;
if(!$rs[gptype]){
print <<<EOT
-->
        <input type='text' name='postdb[{$rs[gid]}][levelnum]' value='$rs[levelnum]' size="8">
        <!--
EOT;
}
print <<<EOT
-->
      </td>
      <td align="center" width="24%"><a href="index.php?lfj=$lfj&job=edit&gid=$rs[gid]" title="点击修改权限"><img src="../member/images/button_properties.png" border="0"></a></td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="6"> 
        <div class="submits">
          <input type="hidden" name="step" value="1">
          <input type="hidden" name="action" value="list">        
            <input type="submit" name="Submit2" value="修改以上设置"/>
          </div>
        
      </td>
    </tr>
   
  </table>
  </div>
  </div>
</form> 
{/block}